cmake_minimum_required(VERSION 3.0...3.5)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)

if(WIN32)
    add_compile_options(/wd4819)
endif()

project(Engine2D)

add_definitions(
    -DVERSION_MAJOR=0
    -DVERSION_MINOR=0
    -DVERSION_PATCH=0
)


add_subdirectory(Engine2D)
add_subdirectory(SandBox)
add_subdirectory(Edit)
add_subdirectory(3rd/sdl3)
add_subdirectory(3rd/yamlcpp)
add_subdirectory(3rd/SDLImage)
add_subdirectory(Test)

